<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Vue入门指南-组合式API</title>
    <link rel="stylesheet" href="common.css"> <script type="importmap">
        {
            "imports":{
                "vue":"http://lib.baomitu.com/vue/latest/vue.esm-browser.js"
            }
        }
    </script>
</head>
<body>
    <div id="app">
        <p>{{message}}</p>
    </div>
    <script type="module">
        import {createApp, ref} from "vue";
        createApp({
            setup() {
                const message=ref("组合式API示例");
                return {
                    message
                }
            }
        }).mount("#app")
    </script>
</body>
</html>